package com.maimao.model.user.sys.vo;

import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 注册员工表单
 * @author MaoLin Wang
 * @date 2020/12/7 3:10 下午
 */
@AllArgsConstructor
@NoArgsConstructor
public class SysUserForm {
    private Integer id;
    @NotEmpty(message = "请选择部门")
    private List<Integer> departmentIds;
    @NotBlank(message = "请填写员工姓名")
    private String realName;
    private List<Integer>roleIds;
    @NotBlank(message = "请填写用户名")
    private String username;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public List<Integer> getDepartmentIds() {
        return departmentIds;
    }

    public void setDepartmentIds(List<Integer> departmentIds) {
        this.departmentIds = departmentIds;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    public List<Integer> getRoleIds() {
        return roleIds;
    }

    public void setRoleIds(List<Integer> roleIds) {
        this.roleIds = roleIds;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }
}
